<?php 
class mdashboard extends CI_Model
{
	function mdashboard()
	{
		parent::__construct();
	}


	public function get_user_login($login)
	{
    echo $login;die();

		$user_login = $this->session->userdata("username");
		$this->db->select("user_id, user_name");
		$this->db->from("t_mtr_user");
        $this->db->where("f_get_cluster(user_id) = f_get_cluster('$user_login') and is_login =$login and istatus=1");
        $q = $this->db->get();

        if ($q->num_rows() > 0) {
            $q = $q->result_array();
            return $q;
        } else {
            return array();
        }
	}


}

?>

